package edu.vt.ece.rt.benchmark.vacation;

import edu.vt.ece.rt.dstm.QObject;
import edu.vt.ece.rt.quorum.Resource;

public class Reservation extends QObject {

	String id;
	String bookedItem;
	int price;
	
	
	public Reservation(String ID, String item, int p) {
		id = ID;
		bookedItem = item;
		price = p;
	}
	
	public Reservation() {
		
	}
	
	
	@Override
	public QObject clone() {
		Reservation c = new Reservation();
		c.setId(getId());
		c.setPrice(getPrice());
		c.setCloneOwner(getCloneOwner());
		c.setVersion(getVersion());
		return c;
	}

	@Override
	public String getId() {
		return id;
	}
	
	public void setId(String newId) {
		id = newId;
	}
	
	public int getPrice(){
		return price;
	}
	
	public void setPrice(int p) {
		price = p;
	}
	
	
	
	
}
